package com.ruoyi.subject.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.subject.mapper.QbExamRecordNoMapper;
import com.ruoyi.subject.domain.QbExamRecordNo;
import com.ruoyi.subject.service.IQbExamRecordNoService;

/**
 * 考试记录-无账号Service业务层处理
 * 
 * @author lzhj
 * @date 2021-03-26
 */
@Service
public class QbExamRecordNoServiceImpl implements IQbExamRecordNoService 
{
    @Autowired
    private QbExamRecordNoMapper qbExamRecordNoMapper;

    /**
     * 查询考试记录-无账号
     * 
     * @param id 考试记录-无账号ID
     * @return 考试记录-无账号
     */
    @Override
    public QbExamRecordNo selectQbExamRecordNoById(Long id)
    {
        return qbExamRecordNoMapper.selectQbExamRecordNoById(id);
    }

    /**
     * 查询考试记录-无账号列表
     * 
     * @param qbExamRecordNo 考试记录-无账号
     * @return 考试记录-无账号
     */
    @Override
    public List<QbExamRecordNo> selectQbExamRecordNoList(QbExamRecordNo qbExamRecordNo)
    {
        return qbExamRecordNoMapper.selectQbExamRecordNoList(qbExamRecordNo);
    }

    /**
     * 新增考试记录-无账号
     * 
     * @param qbExamRecordNo 考试记录-无账号
     * @return 结果
     */
    @Override
    public int insertQbExamRecordNo(QbExamRecordNo qbExamRecordNo)
    {
        qbExamRecordNo.setCreateTime(DateUtils.getNowDate());
        return qbExamRecordNoMapper.insertQbExamRecordNo(qbExamRecordNo);
    }

    /**
     * 修改考试记录-无账号
     * 
     * @param qbExamRecordNo 考试记录-无账号
     * @return 结果
     */
    @Override
    public int updateQbExamRecordNo(QbExamRecordNo qbExamRecordNo)
    {
        qbExamRecordNo.setUpdateTime(DateUtils.getNowDate());
        return qbExamRecordNoMapper.updateQbExamRecordNo(qbExamRecordNo);
    }

    /**
     * 批量删除考试记录-无账号
     * 
     * @param ids 需要删除的考试记录-无账号ID
     * @return 结果
     */
    @Override
    public int deleteQbExamRecordNoByIds(Long[] ids)
    {
        return qbExamRecordNoMapper.deleteQbExamRecordNoByIds(ids);
    }

    /**
     * 删除考试记录-无账号信息
     * 
     * @param id 考试记录-无账号ID
     * @return 结果
     */
    @Override
    public int deleteQbExamRecordNoById(Long id)
    {
        return qbExamRecordNoMapper.deleteQbExamRecordNoById(id);
    }
}
